Optimal. Leaf size=183 \[ \frac{d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac{b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.125023, antiderivative size = 183, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {4469, 4433} \[ \frac{d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac{b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4469
Rule 4433
Rubi steps
\begin{align*} \int e^{a+b x} \cos ^3(c+d x) \sin ^2(c+d x) \, dx &=\int \left (\frac{1}{8} e^{a+b x} \cos (c+d x)-\frac{1}{16} e^{a+b x} \cos (3 c+3 d x)-\frac{1}{16} e^{a+b x} \cos (5 c+5 d x)\right ) \, dx\\ &=-\left (\frac{1}{16} \int e^{a+b x} \cos (3 c+3 d x) \, dx\right )-\frac{1}{16} \int e^{a+b x} \cos (5 c+5 d x) \, dx+\frac{1}{8} \int e^{a+b x} \cos (c+d x) \, dx\\ &=\frac{b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac{b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac{d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac{5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}\\ \end{align*}
Mathematica [A] time = 0.764136, size = 110, normalized size = 0.6 \[ \frac{1}{16} e^{a+b x} \left (\frac{2 (b \cos (c+d x)+d \sin (c+d x))}{b^2+d^2}-\frac{b \cos (3 (c+d x))+3 d \sin (3 (c+d x))}{b^2+9 d^2}-\frac{b \cos (5 (c+d x))+5 d \sin (5 (c+d x))}{b^2+25 d^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.028, size = 166, normalized size = 0.9 \begin{align*}{\frac{b{{\rm e}^{bx+a}}\cos \left ( dx+c \right ) }{8\,{b}^{2}+8\,{d}^{2}}}-{\frac{b{{\rm e}^{bx+a}}\cos \left ( 3\,dx+3\,c \right ) }{16\,{b}^{2}+144\,{d}^{2}}}-{\frac{b{{\rm e}^{bx+a}}\cos \left ( 5\,dx+5\,c \right ) }{16\,{b}^{2}+400\,{d}^{2}}}+{\frac{d{{\rm e}^{bx+a}}\sin \left ( dx+c \right ) }{8\,{b}^{2}+8\,{d}^{2}}}-{\frac{3\,d{{\rm e}^{bx+a}}\sin \left ( 3\,dx+3\,c \right ) }{16\,{b}^{2}+144\,{d}^{2}}}-{\frac{5\,d{{\rm e}^{bx+a}}\sin \left ( 5\,dx+5\,c \right ) }{16\,{b}^{2}+400\,{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.28723, size = 1544, normalized size = 8.44 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.510938, size = 444, normalized size = 2.43 \begin{align*} \frac{{\left (6 \, b^{2} d^{3} + 30 \, d^{5} - 5 \,{\left (b^{4} d + 10 \, b^{2} d^{3} + 9 \, d^{5}\right )} \cos \left (d x + c\right )^{4} + 3 \,{\left (b^{4} d + 6 \, b^{2} d^{3} + 5 \, d^{5}\right )} \cos \left (d x + c\right )^{2}\right )} e^{\left (b x + a\right )} \sin \left (d x + c\right ) -{\left ({\left (b^{5} + 10 \, b^{3} d^{2} + 9 \, b d^{4}\right )} \cos \left (d x + c\right )^{5} -{\left (b^{5} + 6 \, b^{3} d^{2} + 5 \, b d^{4}\right )} \cos \left (d x + c\right )^{3} - 6 \,{\left (b^{3} d^{2} + 5 \, b d^{4}\right )} \cos \left (d x + c\right )\right )} e^{\left (b x + a\right )}}{b^{6} + 35 \, b^{4} d^{2} + 259 \, b^{2} d^{4} + 225 \, d^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11975, size = 205, normalized size = 1.12 \begin{align*} -\frac{1}{16} \,{\left (\frac{b \cos \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}} + \frac{5 \, d \sin \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}}\right )} e^{\left (b x + a\right )} - \frac{1}{16} \,{\left (\frac{b \cos \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}} + \frac{3 \, d \sin \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}}\right )} e^{\left (b x + a\right )} + \frac{1}{8} \,{\left (\frac{b \cos \left (d x + c\right )}{b^{2} + d^{2}} + \frac{d \sin \left (d x + c\right )}{b^{2} + d^{2}}\right )} e^{\left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]